
import useUserStore from '@/store/userStore';

const userStore = useUserStore()
import router from '@/router' 
import { showToast } from 'vant'

export default function(){
	if(!userStore.isLogin){
		showToast('请先登陆')
		setTimeout(function(){
			router.push('/login?come=1')
		},1000)
		return false
	}else{
		return true
	}
}